% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/shapes_from_fips.R
\name{shapes_blockgroups_from_bgfips}
\alias{shapes_blockgroups_from_bgfips}
\title{Get blockgroups boundaries, via API, to map them}
\usage{
shapes_blockgroups_from_bgfips(
  bgfips = "010890029222",
  outFields = c("FIPS", "STATE_ABBR", "SQMI"),
  myservice =
    c("https://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/USA_Boundaries_2022/FeatureServer/5/query",
    "https://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/USA_Block_Groups/FeatureServer/0/query",
    "https://services.arcgis.com/cJ9YHowT8TU7DUyn/ArcGIS/rest/services/EJScreen_2_21_US_Percentiles_Block_Groups/FeatureServer/0/query")[1]
)
}
\arguments{
\item{bgfips}{one or more block group FIPS codes as 12-character strings in a vector}

\item{outFields}{can be "*" for all, or can be
just a vector of variables that particular service provides, like FIPS, SQMI, POPULATION_2020, etc.}

\item{myservice}{URL of feature service to get shapes from.

"https://services.arcgis.com/cJ9YHowT8TU7DUyn/ArcGIS/rest/services/
EJScreen_2_21_US_Percentiles_Block_Groups/FeatureServer/0/query"

for example provides EJScreen indicator values, NPL_CNT, TSDF_CNT, EXCEED_COUNT_90, etc.}
}
\value{
spatial object via \code{\link[sf:st_read]{sf::st_read()}} # sf-data.frame, not sf-tibble like \code{\link[sf:st_read]{sf::read_sf()}}
}
\description{
Get blockgroups boundaries, via API, to map them
}
\details{
This is useful mostly for small numbers of blockgroups.
The EJScreen map services provide other ways to map blockgroups and see EJScreen data.
}
\seealso{
\code{\link[=shapes_from_fips]{shapes_from_fips()}}
}
\keyword{internal}
